<template>
	<view class="follow">
		<view class="follow_box public_sty" v-for="(item, index) in followlist" :key="index">
			<uni-swipe-action>
				<uni-swipe-action-item :right-options="options" @click="follBtn">
					<view class="follow_shopcat">
						<view class="follow_img"><image :src="item.shopIcon" mode=""></image></view>
						<view class="follow_deils">
							<view class="follow_shop_name">
								<text>{{ item.shopname }}</text>
							</view>
							<view class="follow_eval">
								<view class="">
									<uni-icons type="star-filled" color="#FF5F42"></uni-icons>
									<text style="color: #FF5F42;margin-left: 10rpx;">{{ item.score }}</text>
								</view>
								<view class="follow_mou">
									<text>月售{{ item.mouthshou }}</text>
									<text v-show="item.mouthshou >= 500">+</text>
								</view>
							</view>
							<view class="follow_shop_list">
								<view class="shop_list" v-for="(item, idx) in item.shoplist" :key="idx"><image :src="item.image" mode=""></image></view>
							</view>
							<view class="discount">
								<view class="dis_bg">
									
								</view>
								<view class="dis_text">
									<text>{{item.discount}}</text>
								</view>
								
							</view>
						</view>
					</view>
				</uni-swipe-action-item>
			</uni-swipe-action>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			options: [
				{
					text: '取消收藏',
					style: {
						backgroundColor: '#00B359'
					}
				}
			],
			followlist: [
				{
					shopIcon: '/static/uni.png',
					shopname: '华氏大药房（陆家嘴店）',
					score: 4.9,
					mouthshou: 500,
					discount: '2件8.8折',
					shoplist: [
						{
							image: '/static/uni.png'
						},
						{
							image: '/static/uni.png'
						},
						{
							image: '/static/uni.png'
						},
						{
							image: '/static/uni.png'
						}
					]
				},
				{
					shopIcon: '/static/uni.png',
					shopname: '华氏大药房（陆家嘴店）',
					score: 4.9,
					mouthshou: 500,
					discount: '满99减10',
					shoplist: [
						{
							image: '/static/uni.png'
						},
						{
							image: '/static/uni.png'
						},
						{
							image: '/static/uni.png'
						},
						{
							image: '/static/uni.png'
						}
					]
				},
				{
					shopIcon: '/static/uni.png',
					shopname: '华氏大药房（陆家嘴店）',
					score: 4.9,
					mouthshou: 500,
					discount: '2件8.8折',
					shoplist: [
						{
							image: '/static/uni.png'
						},
						{
							image: '/static/uni.png'
						},
						{
							image: '/static/uni.png'
						},
						{
							image: '/static/uni.png'
						}
					]
				}
			]
		};
	},
	methods:{
		follBtn(){
			console.log("1111")
			uni.showToast({
				title:'取消成功',
				icon:'none'
			})
		}
	}
};
</script>

<style lang="scss" scoped>
.follow {
	padding: 30rpx;
	.follow_box {
		// padding: 30rpx;
		overflow: hidden;
		margin-bottom: 24rpx;
		/deep/ .uni-swipe_button-group{
			width: 100rpx;
			border-radius: 20rpx;
			
		}
		/deep/ .uni-swipe_button{
			display: block;
			padding: 0rpx 20rpx;
			padding-top: 130rpx;
		}
		.follow_shopcat{
			display: flex;
			padding: 30rpx 30rpx 20rpx 30rpx;
		}
		.follow_img {
			margin-right: 20rpx;
			image {
				width: 120rpx;
				height: 120rpx;
			}
		}
		.follow_deils {
			.follow_eval{
				display: flex;
				align-items: center;
				margin-top: 10rpx;
				margin-bottom: 40rpx;
				/deep/ 
				.follow_mou{
					font-size: 22rpx;
					color: #666666;
					letter-spacing: -0.14rpx;
					margin-left: 30rpx;
					
				}
			}
			.follow_shop_list{
				display: flex;
				justify-content: space-between;
				.shop_list{
					margin: 0rpx 8rpx;
					image{
						width: 110rpx;
						height: 110rpx;
					}
				}
			}
			.discount{
				position: relative;
				text-align: center;
				margin-top: 10rpx;
				.dis_bg{
					width: 102rpx;
					height: 40rpx;
					background-color: #FF5F42;
					opacity: 0.2;
					border-radius: 10rpx;
				}
				.dis_text{
					width: 96rpx;
					position: absolute;
					bottom: 8%;
					font-size: 22rpx;
					color: #FF5F42;
				}
			}
		}
	}
}
/deep/ .uni-tag{
	// background-color: #FF5F42 !important;
	padding: 0rpx;
	color: #FFFFFF !important;
}
</style>
